package com.logistics.dto;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 发车车辆信息DTO
 */
@Data
public class DispatchVehicleInfo {
    
    private Long vehicleId;
    
    private String vehiclePlate;
    
    private Long driverId;
    
    private String driverName;
    
    private String driverPhone;
    
    private Integer orderCount;
    
    private LocalDateTime dispatchedAt;
    
    private String status; // LOADED 或 TRANSPORTING
    
    private List<DispatchOrderInfo> orders;
    
    /**
     * 订单信息
     */
    @Data
    public static class DispatchOrderInfo {
        private Long orderId;
        private String orderNumber;
        private String pickupAddress;
        private String deliveryAddress;
        private String customerName;
        private String customerPhone;
        private LocalDateTime loadedAt;
    }
}
